<div id="editStaffModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
    aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-body">
                <h3 class="m-t-none m-b ">修改员工</h3>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-6" style="text-align:center">
                            <video id="staffPhotoForEdit" style="width: 100%;"></video>
                            <canvas id="canvasForEdit" style="display:none;"></canvas>
                            <div style="margin-top:20px">
                                <button class="btn btn-primary" type="button" v-on:click="_takePhotoForEdit()"><span
                                        class="glyphicon glyphicon-camera"></span> 拍照</button>
                                <span class="btn btn-default btn-file" v-on:click="_uploadEditPhoto($event)">
                                    <span class="fileinput-new">上传照片</span>
                                </span>
                                <input type="file" class="file" accept="images/*" id="uploadEditStaffPhoto" hidden
                                    v-on:change="_chooseEditPhoto($event)">
                            </div>
                        </div>
                        <div class="col-sm-6">
                            <div>
                                <p style="color:red;">{{editStaffInfo.errorInfo}}</p>
                                <div>
                                    <div class="form-group row">
                                        <label class="col-sm-2 col-form-label">员工名称</label>
                                        <div class="col-sm-10"><input v-model="editStaffInfo.username" type="text"
                                                placeholder="必填，请填写员工名称" class="form-control"></div>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-sm-2 col-form-label">员工邮箱</label>
                                        <div class="col-sm-10"><input v-model="editStaffInfo.email" type="email"
                                                placeholder="可选，请填写员工名称" class="form-control"></div>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-sm-2 col-form-label">手机号码</label>
                                        <div class="col-sm-10"><input v-model="editStaffInfo.tel" type="tel"
                                                placeholder="必填，请填写手机号码" class="form-control"></div>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-sm-2 col-form-label">员工性别</label>
                                        <div class="col-sm-10">
                                            <select class="custom-select" v-model="editStaffInfo.sex">
                                                <option selected value="">必填，请选择员工性别</option>
                                                <option value="0">男</option>
                                                <option value="1">女</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-sm-2 col-form-label">家庭住址</label>
                                        <div class="col-sm-10"><input v-model="editStaffInfo.address" type="text"
                                                placeholder="请填写家庭住址" class="form-control"></div>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-sm-2 col-form-label">照片</label>
                                        <div class="col-sm-10"><img width="100%" height="100%"
                                                v-bind:src="editStaffInfo.photo" alt="业主照片"></div>
                                    </div>
                                </div>

                            </div>
                            <div class="ibox-content">
                                <button class="btn btn-primary float-right" type="button"
                                    v-on:click="editStaffSubmit()"><i class="fa fa-check"></i>&nbsp;修改</button>
                                <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                                    data-dismiss="modal">取消</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>